package com.github.satant.job.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;


/**
 * 任务表
 *
 * @author dear_satant
 * @email 446269825@qq.com
 * @date 2018-06-26 21:34:06
 */
@Table(name = "st_task")
@Data
public class StTask implements Serializable {

    private static final long serialVersionUID = 1L;

    //
    @Id
    private Integer id;

    //任务截止时间
    @Column(name = "end_time")
    private LocalDateTime endTime;

    //任务发布人
    @Column(name = "publish_id")
    private Integer publishId;

    //1:审核中，2：审核通过，3：发布中，4：到期
    @Column(name = "status")
    private Integer status;

    //任务积分
    @Column(name = "point")
    private Integer point;

    //500字以内
    @Column(name = "content")
    private String content;

    //100字以内
    @Column(name = "title")
    private String title;

    //任务创建时间
    @Column(name = "create_time")
    private LocalDateTime createTime;

    //请定义任务类型
    @Column(name = "type")
    private Integer type;

    //人数要求
    @Column(name = "ask_count")
    private Integer askCount;

    //性别要求 1：男，2：女，3：没有要求
    @Column(name = "ask_gender")
    private Integer askGender;

    //备注。300个字以内
    @Column(name = "remark")
    private String remark;

    //任务发布公司
    @Column(name = "publish_company_id")
    private Integer publishCompanyId;

}
